<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace App\Model\Admin;

use App\Model\Model;
use Carbon\Carbon;

/**
 * @property int $id
 * @property string $name 键
 * @property string $value 值
 * @property Carbon $created_at 创建时间
 * @property Carbon $updated_at 更新时间
 * @property int $created_by 添加人
 * @property int $updated_by 修改人
 */
class Option extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'options';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'name', 'value', 'created_at', 'updated_at', 'created_by', 'updated_by'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'created_by' => 'integer', 'updated_by' => 'integer'];
}
